{% extends 'common/default.html' %}
{% block common %}
<div align="center" style="padding-top: 50px;">
<h1>Welcome to use !</h1>
    <form class="form-horizontal" role="form" method="post" action="/index/">
                {%  if  success %}
                    <label style="background-color: #3e8f3e">{{ success }}</label>
                    {% elif erro %}
                    <label style="background-color: red">{{ success }}</label>
                {% endif %}
                <div class="form-group">
                    <label class="col-md-2 control-label">起始地点：</label>
                    <div class="col-md-10">
                        <input type="text" class="form-control" id="password" name="start" style="width: 300px;">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label">终点：</label>
                    <div class="col-md-10">
                        <input type="text" class="form-control" id="trueName" name="final" style="width: 300px;">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="hidden" id="id" name="id" value="${teacher.id }"/>
                        <button type="submit" class="btn btn-primary">搜索路径</button>&nbsp;&nbsp;
                        <font color="red" id="error"></font>
                    </div>
                </div>
            </form>
</div>
{% endblock %}
